<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>成绩表</title>
</head>
<body>
    
</body>

<script>
    var a=prompt("语文成绩");
    var b=prompt("数学成绩");
    var c=prompt("英语成绩");
    var d=prompt("物理成绩");
    var e=prompt("化学成绩");
    
    var x=Math.abs(a);
    var y=Math.abs(b);
    var z=Math.abs(c);
    var w=Math.abs(d);
    var g=Math.abs(e);

    var sum=0;
    sum=sum+x+y+z+w+g;
    alert("5门总成绩为"+sum);

</script>
</html>